package com.dc.chat.app.service;

import com.dc.chat.entity.to.ResponseBean;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;

public interface FileService {

    ResponseBean<String> upload(MultipartFile multipartFile) throws IOException;

    void downLoad(String fileName, HttpServletResponse resp) throws IOException;

    ResponseBean<String> fileupload(MultipartFile multipartFile) throws IOException;
}
